package cn.xshi.sys.service;
import java.util.List;
import java.util.Map;
import cn.xshi.common.base.BaseResult;
import cn.xshi.sys.form.SysConstantForm;
import cn.xshi.sys.model.SysConstant;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
 * @Desc 台平常量
 * @Author 邓纯杰
 * @CreateTime 2024-04-24 09:38:12
 */
public interface SysConstantService {

	/**
	* 分页
	* @param sysConstantForm
	* @return
	*/
	List<SysConstant> getSysConstantListByCondition(SysConstantForm sysConstantForm);

	/**
	* 查询对象
	* @param id
	* @return
	*/
	SysConstant getSysConstantById(String id);

	/**
	* 添加
	* @param sysConstant
	* @return
	*/
	int addSysConstant(SysConstant sysConstant);

	/**
	* 修改
	* @param sysConstant
	* @return
	*/
	int updateSysConstant(SysConstant sysConstant);

	/**
	* 删除
	* @param condition 
	* @return
	*/
	int delSysConstant(Map<String,Object> condition);

	/**
	 * 查询常量集合
	 * @param condition
	 * @return
	 */
	List<SysConstant> getSysConstantListAllByCondition(Map<String,Object> condition);

	/**
	 * 导出
	 * @param response
	 * @param id
	 */
	void exportConstant(HttpServletResponse response, String id);

	/**
	 * 导入
	 * @param request
	 * @param response
	 * @param multipartFile
	 * @return
	 */
	BaseResult importConstant(HttpServletRequest request, HttpServletResponse response, MultipartFile multipartFile);
}
